#ifndef __HISTORY_H__
#define __HISTORY_H__

#include "maos_include.h"

#ifdef __cplusplus
extern "C"{
#endif
	
#include "maos_include.h"
#include "msgstatus.h"

#define		HISTORYMAXNUM	99

typedef struct
{
	void (*init)(void);
	bool (*write)(pMSGSTATUS msg);
	bool (*read)(pMSGSTATUS msg,uint16_t index);
	uint32_t (*get_num)(void);	
	void (*format)(void);
	
}THISTORY;
extern THISTORY history;

#ifdef __cplusplus
}
#endif

#endif
